/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 学期管理Entity 学期管理
 * @author admin
 * @version 2020-09-22 21:19:41
 */
@TableName(value = "t_terms")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Terms extends IdEntity<Terms> {

	private static final long serialVersionUID = 1L;
	/** F_YEAR year  :  学年 */
	public static final String F_YEAR = "year";
	/** F_TYPE type  :  学期 类型 */
	public static final String F_TYPE = "type";
	/** F_NAME name  :  学期名称 */
	public static final String F_NAME = "name";
	/** F_CURRENTED currented  :  是否当前学期 */
	public static final String F_CURRENTED = "currented";


	/** year 学年 */@NotBlank @Size(max=10)

	private String year;
	/** type 学期 类型 */@NotNull

	private Long type;
	/** name 学期名称 */@NotBlank @Size(max=100)

	private String name;
	/** currented 是否当前学期 */

	private Long currented;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
